package com.droowa.domain;

import java.io.Serializable;
import java.util.Date;

public class BusinessRecord implements Serializable{

	private String businessNo;
	private String sort;
	private String sort2;
	private String disposalDate;
	private String disposer;
		
	public BusinessRecord() {
		super();
	}

	public BusinessRecord(String businessNo, String sort, String sort2,
			String disposalDate, String disposer) {
		super();
		this.businessNo = businessNo;
		this.sort = sort;
		this.sort2 = sort2;
		this.disposalDate = disposalDate;
		this.disposer = disposer;
	}

	/**
	 * @return the businessNo
	 */
	public String getBusinessNo() {
		return businessNo;
	}

	/**
	 * @param businessNo the businessNo to set
	 */
	public void setBusinessNo(String businessNo) {
		this.businessNo = businessNo;
	}

	/**
	 * @return the sort
	 */
	public String getSort() {
		return sort;
	}

	/**
	 * @param sort the sort to set
	 */
	public void setSort(String sort) {
		this.sort = sort;
	}

	/**
	 * @return the sort2
	 */
	public String getSort2() {
		return sort2;
	}

	/**
	 * @param sort2 the sort2 to set
	 */
	public void setSort2(String sort2) {
		this.sort2 = sort2;
	}

	/**
	 * @return the disposalDate
	 */
	public String getDisposalDate() {
		return disposalDate;
	}

	/**
	 * @param disposalDate the disposalDate to set
	 */
	public void setDisposalDate(String disposalDate) {
		this.disposalDate = disposalDate;
	}

	/**
	 * @return the disposer
	 */
	public String getDisposer() {
		return disposer;
	}

	/**
	 * @param disposer the disposer to set
	 */
	public void setDisposer(String disposer) {
		this.disposer = disposer;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "BusinessRecord [businessNo=" + businessNo + ", sort=" + sort
				+ ", sort2=" + sort2 + ", disposalDate=" + disposalDate
				+ ", disposer=" + disposer + "]";
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((businessNo == null) ? 0 : businessNo.hashCode());
		result = prime * result
				+ ((disposalDate == null) ? 0 : disposalDate.hashCode());
		result = prime * result
				+ ((disposer == null) ? 0 : disposer.hashCode());
		result = prime * result + ((sort == null) ? 0 : sort.hashCode());
		result = prime * result + ((sort2 == null) ? 0 : sort2.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BusinessRecord other = (BusinessRecord) obj;
		if (businessNo == null) {
			if (other.businessNo != null)
				return false;
		} else if (!businessNo.equals(other.businessNo))
			return false;
		if (disposalDate == null) {
			if (other.disposalDate != null)
				return false;
		} else if (!disposalDate.equals(other.disposalDate))
			return false;
		if (disposer == null) {
			if (other.disposer != null)
				return false;
		} else if (!disposer.equals(other.disposer))
			return false;
		if (sort == null) {
			if (other.sort != null)
				return false;
		} else if (!sort.equals(other.sort))
			return false;
		if (sort2 == null) {
			if (other.sort2 != null)
				return false;
		} else if (!sort2.equals(other.sort2))
			return false;
		return true;
	}

}
